import request from '@/utils/request'

//添加文件信息 post
export function api_addFileResourceRecord(data) {
  return request({
    // fullUrl: window.getUploadFileUrl()+'/file-os-service/v1/files/records',
    url: '/v1/resource/records',
    method: 'post',
    data
  })
}
//合并分块文件 put
export function api_mergeBlockChunkFile(data) {
  return request({
    // fullUrl: window.getUploadFileUrl()+'/file-os-service/v1/files/'+data.file_id+'?total_count='+data.countBlock,
    url: '/v1/resource/'+data.file_id+'?total_count='+data.countBlock,
    method: 'put',
    data
  })
}
